package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.domain.dto.Condition;
import org.example.domain.entity.Order;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    List<Order> findOrder(@Param("condition") Condition condition);
    List<Order> queryOrder(@Param("userId")Integer userId,@Param("status") Integer status);
    Integer updateStatus(String orderId);
    List<String> queryOrderByUserId(Integer userId);
}
